#ifndef WORKERMANAGEWIDGET_H
#define WORKERMANAGEWIDGET_H

#include <QWidget>
#include <QSqlTableModel>

namespace Ui {
class WorkerManageWidget;
}

class WorkerManageWidget : public QWidget
{
    Q_OBJECT

public:
    explicit WorkerManageWidget(QWidget *parent = 0);
    ~WorkerManageWidget();

private slots:
    void on_btn_addUser_clicked();

    void on_btn_deleteUser_clicked();

    void on_btn_commit_clicked();

    void on_btn_backout_clicked();

private:
    Ui::WorkerManageWidget *ui;
    QSqlTableModel *model; //tableModel

    void initWidget(); //初始化窗体
    void initTable(); //初始化Table
};

#endif // WORKERMANAGEWIDGET_H
